package com.jeesite.modules.app.util.answer;

import java.math.BigDecimal;

import com.jeesite.common.lang.StringUtils;

public class AnswerUtils {
	  /**
	   * 计算second是否等于first
	   * @param first
	   * @param second
	   * @return
	   */
      public static boolean calculation(String first,String second) {
    	  boolean sco=true;
    	  if(StringUtils.isNotBlank(second)) {
     			//先判断长度
     			if(first.length()==second.length()) {
     				String[] split = second.split(",");
     				for(String key:split) {
     					int indexOf = first.indexOf(key);
     					if(indexOf<0) {
     						sco=false;
     					}
     				}
     			}else {
     				sco=false;
     			}
     		}else {
     			sco=false;
     		}
    	  return sco;
      }
}
